#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.trigger.http;

import ${package}.domain.xxx.service.IMqTest;
import ${package}.domain.xxx.service.IRedisTest;
import ${package}.api.model.response.ResultData;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/v1/api")
public class Controller {


    @Resource
    private IMqTest mqTest;
    @Resource
    private IRedisTest redisTest;


    @GetMapping("/get")
    public ResultData<String> success() {
        log.info("测试调用");
        return ResultData.success("hello world");
    }

    @GetMapping("/mq")
    public ResultData<String> sendMq() {
        mqTest.testSendMqMessage();
        return ResultData.success("mq");
    }

    @GetMapping("/redis")
    public ResultData<String> sendRedis() {
        redisTest.test("key","value");
        return ResultData.success("redis");
    }


}
